
package com.example.zp.liaotian;

public class ChatMsgEntity {
    private static final String TAG = ChatMsgEntity.class.getSimpleName();

    private String name;

    private String date;

    private String text;
    
    private String time;
    private int to_id,local_id;


    //标志是否是自己的
    private boolean isSelf;

    public boolean isSelf() {
        return isSelf;
    }

    public void setSelf(boolean self) {
        isSelf = self;
    }

    //标志布局
    private int flag;

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getTo_id() {
        return to_id;
    }

    public void setTo_id(int to_id) {
        this.to_id = to_id;
    }

    public int getLocal_id() {
        return local_id;
    }

    public void setLocal_id(int local_id) {
        this.local_id = local_id;
    }

    public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }


    public ChatMsgEntity() {
    }

    /**
     *
     * @param name
     * @param date
     * @param text
     * @param time
     * @param to_id
     * @param local_id
     * @param isSelf   false别人   true自己
     * @param flag      布局标志位
     */
    public ChatMsgEntity(String name, String date, String text, String time, int to_id, int local_id, boolean isSelf, int flag) {
        this.name = name;
        this.date = date;
        this.text = text;
        this.time = time;
        this.to_id = to_id;
        this.local_id = local_id;
        this.isSelf = isSelf;
        this.flag = flag;
    }
}
